Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'circusctl options <watcher>' command -- output modification #1096

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mercma
Copy link
Contributor

@mercma mercma commented Nov 19, 2018

This patch changes the output of the:

'circusctl options '

to match the information in the [watcher:] section of the configuration file. You can now view any rlimit_, and std[out|err]_stream options. The dict information from std[out|err]_stream_conf has been removed from the output, replace with std[out|err]_stream. (as it would appear in the configuration file)

Merge pull request circus-tent#1089 from mercma/master
be representative of what is in the configuration (ini) file

This also removes some of the details that were output that
are for internal purposes (e.g. std[out|err|in]_stream dict)

example watcher:
[watcher:exec]
cmd = /usr/bin/python3
args = /root/circus/exec.py
stdout_stream.class = FileStream
stdout_stream.filename = /root/circus/logger.log
close_child_stderr = false
close_child_stdout = false
close_child_stdin = true
use_papa = true

old output:
error: command b'{"command":"options","properties":{"name":"exec"},"id":"6d93620716dd4555bcbc35181e5ded28"}': Object of type FileStream is not JSON serializable

new output:
args: /root/circus/exec.py
close_child_stderr: False
close_child_stdin: True
close_child_stdout: False
cmd: /usr/bin/python3
copy_env: False
env:
executable:
gid:
graceful_timeout: 30.0
max_age: 0
max_age_variance: 30
max_retry: 5
numprocesses: 1
on_demand: False
priority: 0
respawn: True
send_hup: False
shell: False
shell_args:
singleton: False
stdout_stream.class: FileStream
stdout_stream.filename: /root/circus/logger.log
stop_children: False
stop_signal: 15
uid:
use_papa: True
use_sockets: False
warmup_delay: 0
working_dir: /root/circus
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 62.84% when pulling 2018457 on mercma:options-like-ini into 5dd5e96 on circus-tent:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants